all:
	nvcc -o bin/conv2d_tiny conv2d_tiny.cu -L/usr/local/cuda/cudnn-linux-x86_64-8.9.7.29_cuda12-archive/lib -lcudnn -I /usr/local/cuda/cudnn-linux-x86_64-8.9.7.29_cuda12-archive/include -lineinfo # && sudo /usr/local/cuda/bin/ncu -f -o conv2d_tiny --set full ./bin/conv2d_tiny
	nvcc -g -o bin/conv2d_chw conv2d_chw.cu -L/usr/local/cuda/cudnn-linux-x86_64-8.9.7.29_cuda12-archive/lib -lcudnn -I /usr/local/cuda/cudnn-linux-x86_64-8.9.7.29_cuda12-archive/include -lineinfo # && sudo /usr/local/cuda/bin/ncu -f -o conv2d_chw --set full ./bin/conv2d_chw

clean:
	sudo rm -rf bin/*
	sudo rm -rf *.ncu-rep